package com.fanshilz.flower2025.business.flower.sms.entity;

import com.fanshilz.flower2025.framework.mybatisflex.BaseEntity;
import com.fanshilz.flower2025.framework.mybatisflex.InsertOrUpdateListener;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import java.io.Serializable;
import java.sql.Timestamp;


import lombok.*;
import lombok.experimental.SuperBuilder;

/**
 * 实体类。
 *
 * @author fugui
 * @since 2024-10-24
 */
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "flower_sms", onInsert = InsertOrUpdateListener.class, onUpdate = InsertOrUpdateListener.class)
public class Sms extends BaseEntity {

    @Id(keyType = KeyType.Auto)
    private Long smsId;

    private String templateCode;

    private String verificationCode;

    // 0=未使用 1=已经使用
    private Integer verificationCodeStatus;

    private String mobile;

}
